home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / dist / bfd / hosts / vaxbsd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-01  |  1.2 KB  |  47 lines

  1. #include <fcntl.h>
  2. #include <errno.h>
  3. #include <stdio.h>
  4. #include <sys/types.h>
  5. #include <sys/stat.h>
  6. #include <ctype.h>
  7. #include <string.h>
  8. #include <sys/file.h>
  9. #include <stdlib.h>
  10.  
  11. #define FASCIST_FDOPEN        /* fdopen(,"w") on read-only, fails */
  12. #define    NO_CORE_COMMAND        /* No command name in core file */
  13.  
  14. #ifndef O_ACCMODE
  15. #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
  16. #endif
  17.  
  18. #undef    ALIGN            /* They use it, we use it too */
  19. #include <machine/param.h>
  20. #undef    ALIGN            /* They use it, we use it too */
  21.  
  22. /* Note that HOST_PAGE_SIZE -- the page size as far as executable files
  23.    are concerned -- is not the same as NBPG, because of page clustering.  */
  24. #define    HOST_PAGE_SIZE        1024
  25. #define    HOST_MACHINE_ARCH    bfd_arch_vax
  26.  
  27. #define    HOST_TEXT_START_ADDR    0
  28. #define    HOST_STACK_END_ADDR    (KERNBASE - (UPAGES * NBPG))
  29. #undef    HOST_BIG_ENDIAN_P
  30.  
  31. /* EXACT TYPES */
  32. typedef char int8e_type;
  33. typedef unsigned char uint8e_type;
  34. typedef short int16e_type;
  35. typedef unsigned short uint16e_type;
  36. typedef int int32e_type;
  37. typedef unsigned int uint32e_type;
  38.  
  39. /* CORRECT SIZE OR GREATER */
  40. typedef char int8_type;
  41. typedef unsigned char uint8_type;
  42. typedef short int16_type;
  43. typedef unsigned short uint16_type;
  44. typedef int int32_type;
  45. typedef unsigned int uint32_type;
  46. #include "fopen-same.h"
  47.